package com.jeesite.modules.stock.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jeesite.modules.stock.dao.mapper.SectorWeekMapper;
import com.jeesite.modules.stock.dto.SectorKlineQueryDTO;
import com.jeesite.modules.stock.entity.SectorWeekEntity;

@Component
public class SectorWeekDao {

	@Autowired
	private SectorWeekMapper sectorWeekMapper;
	
	public List<SectorWeekEntity> findList(String groupName, String startDate, String endDate) {
		SectorKlineQueryDTO param = new SectorKlineQueryDTO();
		param.setGroupName(groupName);
		param.setStartDate(startDate);
		param.setEndDate(endDate);
		return sectorWeekMapper.findList(param);
	}
}
